<?php
$mu = Session::get('mu');
$notice = new Model('notice');
$notice->find(['uid'=>$mu->id]);
if(Request::post()){
    $content = Request::post('content');
    $switch = Request::post('switch');
    $notice->uid = $mu->id;
    $notice->content = $content;
    $notice->switch = $switch;
    $notice->save();
    tusi('设置成功');
}




